package lims.cloud.equipment.equipmentInfo;

import lims.cloud.system.base.mybatis.IBaseControllerImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/information")
public class EquipmentInfoController extends IBaseControllerImpl<EquipmentInfo, EquipmentInfoService> {
    public EquipmentInfoController(EquipmentInfoService iBaseService) {
        super(iBaseService);
    }

    @GetMapping("/test")
    public String test(@RequestParam("red") String red) {
        return "red = " + red;
    }

    @GetMapping("/test1")
    public String test1(@RequestHeader("X-Request-Color") String color, @RequestHeader("X-Request-Name") String name) {
        return "color = " + color + ", name = " + name;
    }

}
